import request from '@/utils/request'

// 查询退药项记录列表
export function listDrug_refund_item_record(query) {
  return request({
    url: '/dms/drug_refund_item_record/list',
    method: 'get',
    params: query
  })
}

// 查询退药项记录详细
export function getDrug_refund_item_record(id) {
  return request({
    url: '/dms/drug_refund_item_record/' + id,
    method: 'get'
  })
}

// 新增退药项记录
export function addDrug_refund_item_record(data) {
  return request({
    url: '/dms/drug_refund_item_record',
    method: 'post',
    data: data
  })
}

// 修改退药项记录
export function updateDrug_refund_item_record(data) {
  return request({
    url: '/dms/drug_refund_item_record',
    method: 'put',
    data: data
  })
}

// 删除退药项记录
export function delDrug_refund_item_record(id) {
  return request({
    url: '/dms/drug_refund_item_record/' + id,
    method: 'delete'
  })
}

// 导出退药项记录
export function exportDrug_refund_item_record(query) {
  return request({
    url: '/dms/drug_refund_item_record/export',
    method: 'get',
    params: query
  })
}